ggplot2()Git branches are
Steps: 1. Stage 2. Commit (with a message) 3. Push
| Option | default | effect |
|---|---|---|
eval |
TRUE |
Evalute the code and include the results |
echo |
TRUE |
Display the code along with its results |
warning |
TRUE |
Display warnings |
error |
FALSE |
Display errors |
message |
TRUE |
Display messages |
tidy |
FALSE |
Reformat code to make it ‘tidy’ |
results |
“markup” | “markup”, “asis”,“hold”,“hide” |
cache |
FALSE |
Cache results for future renders |
comment |
"##" |
Comment character to preface results |
fig.width |
7 | Width in inches for plots |
fig.height |
7 | Height in inches for plots |
All R code to be run must be in a code chunk like this:
#```{r,eval=F}
CODE HERE
#```
R Code Chunks: Displaying Plots
Use chunk options throughout a document:
Update the YAML header to keep the markdown file
From this:
title: "Untitled"
author: "Adam M. Wilson"
date: "September 21, 2015"
output: html_document
To this:
title: "Demo"
author: "Adam M. Wilson"
date: "September 21, 2015"
output:
html_document:
keep_md: true
And click knit HTML to generate the output
# and ##) and some example narrative.See Rmd file for full references and sources